package com.taxshare.tools.constant;

/**
 *
 */
public final class CommonConstant {

    private CommonConstant() {
    }

    public static final String SUCCESS_MSG = "执行操作成功！";

    public static final String SUCCESS = "T0000";

    public static final String INTERFACE_SUCCESS = "0000";

    public static final String RET_TOL_99999_CODE = "TOL_99999";

    public static final String RET_TOL_99999_MSG = "令牌失效!";

    /**
     * 日期格式一
     */
    public static final String DATE_FORMAT_ONE = "yyyy-MM-dd HH:mm:ss";

    /**
     * 日期格式二
     */
    public static final String DATE_FORMAT_TWO = "yyyy-MM-dd";

    /**
     * 日期格式三
     */
    public static final String DATE_FORMAT_THREE = "yyyyMM";

    /**
     * 日期格式四
     */
    public static final String DATE_FORMAT_FOUR = "yyyyMMddHHmmss";

    /**
     * 调用税神通接口异常
     */
    public static final String INVOICE_ERROR ="接口调用异常，请检查";
    /**
     * 报文解析异常
     */
    public static final String PARSE_ERROR ="返回数据解析异常，请检查";

    public static final String STATUS_CODE ="statusCode";

    public static final String RESPONSE = "response";

    public static final String RETURN_CODE = "returncode";

    public static final String RETURN_MSG = "returnmsg";

    public static final String CHARACTER_SET_UTF_8 = "utf-8";


    /**
     * 校验令牌
     */
    public static final String ACCESS_TOKEN = "access-token";

    /**
     * 运行平台令牌
     */
    public static final String PA_SESSION = "paSession";

    /**
     * 刷新令牌
     */
    public static final String REFRESH_TOKEN = "refresh-token";

    /**
     * 用户权限类型 1普通用户
     */
    public static final String AUTH_TYPE_1 = "1";

    /**
     * 用户权限类型 2集团用户
     */
    public static final String AUTH_TYPE_2 = "2";

    /**
     * 用户权限类型 3平台用户
     */
    public static final String AUTH_TYPE_3 = "3";

    /**
     * 全局cookie
     */
    // cookie 过期时间
    public static final int COOKIE_MAX_TIME=18000; // 与token时长相同
    /**
     * 请求方式：POST
     */
    public static final String POST = "POST";

    /**
     * 请求方式：GET
     */
    public static final String GET = "GET";

    /**
     * 0 否
     */
    public static final String TYPE_0 = "0";

    /**
     * 1 是
     */
    public static final String TYPE_1 = "1";

    /**
     * 2 Str类型
     */
    public static final String TYPE_2 = "2";
}
